package org.itboys.admin.entity;

import org.mongodb.morphia.annotations.Entity;

import java.util.List;

/**
 * 组织实体
 * @author WeiSky
 *
 */
@Entity(value="AdminOrg", noClassnameStored = true)
public class AdminOrg extends BaseAdminEntity{

	private static final long serialVersionUID = -8154137735838895198L;

	private String name;//组织名称
	
	private Long parentId;//上级组织ID
	
	private Integer sort;//排序字段

	private String key;//组织KEY

	private String desc;//组织描述
	
	private Integer isDeleted = 0;//逻辑删除标记 0有效 1删除

	private List<AdminOrg> children;


	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Integer getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}

	public List<AdminOrg> getChildren() {
		return children;
	}

	public void setChildren(List<AdminOrg> children) {
		this.children = children;
	}
}
